|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.interactions.core.support.Widget
org.eclipse.vtp.framework.interactions.voice.vxml.Action
org.eclipse.vtp.framework.interactions.voice.vxml.Return
public class Return
The Return class represents the <return> VXML element.
The return element ends execution of a subdialog and returns control and data
to a calling dialog. The data can either be in the form of an event that is
thrown upon returning or a list of variables in the scope of the subdialog to
add to the scope of the calling dialog.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
Return(java.lang.String eventName)
Creates a new Return object that throws the specified event upon returning to the caller dialog. |
|
Return(java.lang.String[] names)
Creates a new Return object that copies the named variables from the subdialog's scope into the scope of the calling dialog. |
|
| Method Summary | |
|---|---|
void |
addName(java.lang.String name)
Adds the variable name to the list of variable names that will be copied into the calling dialog's scope. |
java.lang.String |
getEventName()
Returns the name of the event this return object will throw. |
java.lang.String[] |
getNames()
Returns the list of variable names that will be copied into the calling dialog's scope. |
void |
removeName(java.lang.String name)
Removes the variable name from the list of variable names that will be copied into the calling dialog's scope. |
void |
setEventName(java.lang.String eventName)
Sets the name of the event this return object will throw. |
protected void |
writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
Write the attribute members of this action to the supplied set. |
void |
writeWidget(org.xml.sax.ContentHandler outputHandler)
Writes the content of this widget to an XML content handler. |
| Methods inherited from class org.eclipse.vtp.framework.interactions.core.support.Widget |
|---|
toString, writeAttribute, writeChildren, writeChildren, writeWidget, writeWidget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Return(java.lang.String eventName)
eventName - Name of the event to throw.
java.lang.IllegalArgumentException - If the supplied event name is empty.
public Return(java.lang.String[] names)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
names - List of variables to copy.
java.lang.IllegalArgumentException - If any of the supplied names are empty.
java.lang.NullPointerException - If any of the supplied names are
null.| Method Detail |
|---|
public java.lang.String getEventName()
public java.lang.String[] getNames()
public void setEventName(java.lang.String eventName)
throws java.lang.IllegalArgumentException
eventName - The name of the event this return object will throw.
java.lang.IllegalArgumentException - If the supplied event name is empty.
public void addName(java.lang.String name)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
name - The variable name to add.
java.lang.IllegalArgumentException - If the supplied name is empty.
java.lang.NullPointerException - If the supplied name is null.
public void removeName(java.lang.String name)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
name - The variable name to remove.
java.lang.IllegalArgumentException - If the supplied name is empty.
java.lang.NullPointerException - If the supplied name is null.
public void writeWidget(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
Widget
writeWidget in class WidgetoutputHandler - The handler to write this widget to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of this widget fails.protected void writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
attributes - The attribute set to write to.
java.lang.NullPointerException - If the supplied attribute set is
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||